/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.config.entity.pay;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 银联支付配置Entity
 * @author JiangYongKang
 * @version 2016-12-14
 */
public class ConfigPayUnionBank extends DataEntity<ConfigPayUnionBank> {
	
	private static final long serialVersionUID = 1L;
	private String mchCode;		// 商户号
	private String mchPrivateKeyPassword;		// 商户私钥证书密码
	private String bankAccount;		// 企业网银账号
	private String bankPassword;		// 企业网银密码
	
	public ConfigPayUnionBank() {
		super();
	}

	public ConfigPayUnionBank(String id){
		super(id);
	}

	@Length(min=0, max=255, message="商户号长度必须介于 0 和 255 之间")
	public String getMchCode() {
		return mchCode;
	}

	public void setMchCode(String mchCode) {
		this.mchCode = mchCode;
	}
	
	@Length(min=0, max=255, message="商户私钥证书密码长度必须介于 0 和 255 之间")
	public String getMchPrivateKeyPassword() {
		return mchPrivateKeyPassword;
	}

	public void setMchPrivateKeyPassword(String mchPrivateKeyPassword) {
		this.mchPrivateKeyPassword = mchPrivateKeyPassword;
	}
	
	@Length(min=0, max=255, message="企业网银账号长度必须介于 0 和 255 之间")
	public String getBankAccount() {
		return bankAccount;
	}

	public void setBankAccount(String bankAccount) {
		this.bankAccount = bankAccount;
	}
	
	@Length(min=0, max=255, message="企业网银密码长度必须介于 0 和 255 之间")
	public String getBankPassword() {
		return bankPassword;
	}

	public void setBankPassword(String bankPassword) {
		this.bankPassword = bankPassword;
	}
	
}